<!DOCTYPE html>
<html>
<head>
<script src="../../fast/repaint/resources/text-based-repaint.js" type="text/javascript"></script>
<script>
function repaintTest()
{
  if (window.testRunner) {
    var targetElement = document.getElementById('target');
    targetElement.style.opacity = '0.5';
    document.body.offsetTop;
    targetElement.style.opacity = '1';
    document.body.offsetTop;
  }
}
</script>
<style>
.item {
  margin: 10px;
  padding: 10px;
  opacity: 1;
}
.flex {
  display: flex;
  flex-direction: column;
}
</style>
</head>
<body onload="runRepaintTest()">
<div class="flex">
    <div class="item" id="target"></div>
    <div class="item"></div>
</div>
</body>
